﻿namespace RuoVea.WeighIns.Server.Dto
{
    /// <summary>
    /// 体重统计视图模型
    /// </summary>
    public class WeightStatViewModel
    {
        /// <summary>
        /// 当前体重
        /// </summary>
        public double CurrentWeight { get; set; }

        /// <summary>
        /// 当前体重记录时间
        /// </summary>
        public DateTime? CurrentWeightTime { get; set; }

        /// <summary>
        /// 历史最高体重
        /// </summary>
        public double MaxWeight { get; set; }

        /// <summary>
        /// 历史最高体重时间
        /// </summary>
        public DateTime? MaxWeightTime { get; set; }

        /// <summary>
        /// 历史最低体重
        /// </summary>
        public double MinWeight { get; set; }

        /// <summary>
        /// 历史最低体重时间
        /// </summary>
        public DateTime? MinWeightTime { get; set; }

        /// <summary>
        /// 相比上周变化量
        /// </summary>
        public double ChangeFromLastWeek { get; set; }

        /// <summary>
        /// 相比上月变化量
        /// </summary>
        public double ChangeFromLastMonth { get; set; }

        /// <summary>
        /// 累计变化总量
        /// </summary>
        public double TotalChange { get; set; }

        /// <summary>
        /// 平均每周变化率
        /// </summary>
        public double AvgWeeklyChange { get; set; }

        /// <summary>
        /// 平均每月变化率
        /// </summary>
        public double AvgMonthlyChange { get; set; }

        /// <summary>
        /// 记录总数
        /// </summary>
        public int TotalRecords { get; set; }

        /// <summary>
        /// 记录天数
        /// </summary>
        public int RecordDays { get; set; }
    }
}